export default{
  namespaced:true, //配合mapstate等带map函数使用的 
  state:()=>({
    address1:uni.getStorageSync('address')?JSON.parse(uni.getStorageSync('address')):{}
  }),
  mutations:{
    addd(state,a){
      state.address1=a
      this.commit('m_addrees/saves')
    },
    saves(state){
      uni.setStorageSync('address',JSON.stringify(state.address1))
    }
  },
  getters:{
    dizhi(state){
      
      return state.address1.provinceName+state.address1.cityName+state.address1.countyName+state.address1.detailInfo
    }
  }
}